package com.rp.dao;

import java.util.Calendar;
import java.util.List;

import com.rp.model.Estabelecimento;

public interface IEstabelecimentoDAO {

    public List<String> buscarEstabelecimentos() throws Throwable;

    public void insereEstabelecimento(Estabelecimento estabelecimento)
	    throws Throwable;

    public void atualizaEstabelecimento(Estabelecimento estabelecimento)
	    throws Throwable;

    public long buscarCnpjPorNome(String nome) throws Throwable;

    public Estabelecimento buscarPeloCnpj(long cnpj) throws Throwable;

    public long count(Calendar data) throws Throwable;

    public ResultSetProcessor<Estabelecimento> getPendentes(Calendar data)
	    throws Throwable;

}